package com.example.foobar.business.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.foobar.business.service.DaQrcodeNewCommerCountService;
import com.example.foobar.business.service.DaQrcodeRecordsService;
import com.example.foobar.dao.service.DaQrcodeNewCommerCountDaoService;
import com.example.foobar.dao.service.DaQrcodeRecordsDaoService;
import com.example.foobar.entity.DaQrcodeNewCommerCount;
import com.example.foobar.entity.DaQrcodeRecords;
import com.example.foobar.entity.ImsGhostQrcodeRecords;
import com.example.foobar.param.DaQrcodeRecordsPageParam;
import io.geekidea.springbootplus.framework.core.pagination.Paging;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 分析系统配置文件 服务实现类
 *
 * @author 郑英奔
 * @since 2021-05-31
 */
@Slf4j
@Service
public class DaQrcodeRecordsServiceImpl implements DaQrcodeRecordsService {

    @Autowired
    DaQrcodeRecordsDaoService daQrcodeRecordsDaoService;

    @Override
    public boolean saveDaQrcodeRecords(DaQrcodeRecords daQrcodeRecords) {
        return daQrcodeRecordsDaoService.saveDaQrcodeRecords(daQrcodeRecords);
    }

    @Override
    public boolean updateDaQrcodeRecords(DaQrcodeRecords daQrcodeRecords) {
        return daQrcodeRecordsDaoService.saveDaQrcodeRecords(daQrcodeRecords);
    }

    @Override
    public boolean deleteDaQrcodeRecords(Long id) {
        return daQrcodeRecordsDaoService.deleteDaQrcodeRecords(id);
    }

    @Override
    public DaQrcodeRecords getById(Long id) {
        return daQrcodeRecordsDaoService.getById(id);
    }


    @Override
    public void remove(QueryWrapper<DaQrcodeRecords> wrapper) {
        daQrcodeRecordsDaoService.remove(wrapper);
    }

    @Override
    public void saveBatch(List<DaQrcodeRecords> collect) {
        daQrcodeRecordsDaoService.saveBatch(collect);
    }
}
